﻿@model KpBusiness.Model.Position

@{
    ViewBag.Title = "Create";
}

<h1>Create Position</h1>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
       


        <div class="left-div">
         <div class="editor-label">
            @Html.LabelFor(model => model.PositionName)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.PositionName, new { tabindex=1})<br />

            @Html.ValidationMessageFor(model => model.PositionName)


        </div>
          <div class="editor-label">
            @Html.LabelFor(model => model.Salary)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Salary, new { tabIndex = 3 })<br />

            @Html.ValidationMessageFor(model => model.Salary)
        </div>
       
        <div class="editor-label">
            @Html.LabelFor(model => model.YearExpFrom)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.YearExpFrom, new { tabindex = 5 })<br />

            @Html.ValidationMessageFor(model => model.YearExpFrom)
        </div>
          <div class="editor-label">
            @Html.LabelFor(model => model.FromDate)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.FromDate, new { tabindex = 7 })<br />

            @Html.ValidationMessageFor(model => model.FromDate)
        </div>
        
        <div class="editor-label">
            @Html.LabelFor(model => model.YearExpTo)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.YearExpTo, new { tabindex = 9 })<br />

            @Html.ValidationMessageFor(model => model.YearExpTo)
        </div>

        </div>

       <div class="right-div">
         <div class="editor-label">
            @Html.LabelFor(model => model.Skills)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Skills, new { tabindex = 2 })<br />

            @Html.ValidationMessageFor(model => model.Skills)
        </div>
        
          <div class="editor-label">
            @Html.LabelFor(model => model.SalaryTo)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.SalaryTo, new { tabindex = 4 })<br />

            @Html.ValidationMessageFor(model => model.SalaryTo)
        </div>
       

       

       
        
        <div class="editor-label">
            @Html.LabelFor(model => model.NumberOfPositions)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.NumberOfPositions, new { tabindex = 6 })<br />

            @Html.ValidationMessageFor(model => model.NumberOfPositions)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ToDate)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.ToDate, new { tabindex = 8 })<br />

            @Html.ValidationMessageFor(model => model.ToDate)
        </div>
          <div class="editor-label">
            @Html.LabelFor(model => model.IsClosed)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(model => model.IsClosed)<br />

            @Html.ValidationMessageFor(model => model.IsClosed)
        </div>
       </div>
      

       
      <div class="clear"></div>

      

      

      
  <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
